<?php
require('config.php');

        $user_id=$_REQUEST['user_id'];
		$sql="select * from `".$oto."_withdraw` where `userId`='{$user_id}' order by `createTime` DESC";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$person_info[]=$row;//将取得的所有数据赋值给person_info数组
		}
		if(isset($person_info)) echo json_encode($person_info);
		else echo '[]';
?>